package com.apsfc.util;

import org.aspectj.lang.ProceedingJoinPoint;

public class AdviceUtil {
    public void before(){
        System.out.println("Spring前置通知");
    }

    public void after(){
        System.out.println("Spring后置通知");
    }

    public Object around(ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("环绕通知前");
        Object obj = pjp.proceed();
        System.out.println("环绕通知后");
        return obj;
    }

    public void exception(){
        System.out.println("异常通知");
    }
}
